package com.example.output;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class WordDesc {
    // 描述标题
    private String title;
    
    // 描述内容
    private String content;
    
    public static WordDesc toDto(String title, String content) {
        WordDesc res = new WordDesc();
        res.setTitle(title);
        res.setContent(content);
        return res;
    }
}
